package com.jeecms.wicool.dao.util;

import java.util.List;

import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.util.Dictionary2;

public interface DictionaryDao {
	public Pagination getPage(String typeCode,int pageNo, int pageSize);
	
	public List<Dictionary2> getList(String typeCode);
	
	public List<String> getTypeList();

	public Dictionary2 findById(Integer id);
	
	public Dictionary2 findByValue(String typeCode,String dicName);

	public Dictionary2 save(Dictionary2 bean);

	public Dictionary2 updateByUpdater(Updater<Dictionary2> updater);

	public Dictionary2 deleteById(Integer id);

	public int countByValue(String dicName, String typeCode);
	
	public Dictionary2 findByDicCode(String typeCode,Short dicCode);

}